﻿using System;

using System.Collections.Generic;
using System.Text;
using Microsoft.Practices.Mobile.Configuration;

namespace Microsoft.Practices.Mobile.DisconnectedAgent.WebService.ConfigurationCredentialService
{
    public class AccountsElementCollection: ConfigurationElementCollection
    {
        protected override ConfigurationElement CreateNewElement()
        {
            return new AccountElement();
        }

        protected override object GetElementKey(ConfigurationElement element)
        {
            return ((AccountElement)element).AccountName;
        }
    }
}
